| Conditions | 2 |
| Total Lines | 13 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import {error, info, success} from '../utils/console' |
||
| 26 | uninstall = async (): Promise<boolean> => { |
||
| 27 | if (!(await this.isInstalled())) { |
||
| 28 | error(`${this.name} is not installed.`) |
||
| 29 | return false |
||
| 30 | } |
||
| 31 | |||
| 32 | info(`Uninstalling ${this.name}...`) |
||
| 33 | |||
| 34 | await client().packageManager.uninstall(this.alias, false) |
||
| 35 | |||
| 36 | success(`Uninstalled ${this.name}.`) |
||
| 37 | |||
| 38 | return true |
||
| 39 | } |
||
| 50 | export default Tool |